package com.tjbank.cssys.annotaion;

import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.ElementType.TYPE_USE;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

/**
 * tenantCode
 * 
 * Package : com.tansun.magicube.iam.annotaion
 * 
 * @author -- lijiangtao 2020年5月15日 下午2:46:09
 *
 */
@Documented
@Constraint(validatedBy = {})
@Retention(RetentionPolicy.RUNTIME)
@Target({ METHOD, FIELD, CONSTRUCTOR, PARAMETER, TYPE_USE })
public @interface IsTenantCode {

	String message() default "租户代码已存在";

	Class<?>[] groups() default {};

	Class<? extends Payload>[] payload() default {};
}
